{template 'common/header'}
<div id="louie-add" class="row" data-url="{php echo $this->createWebUrl('api')}">
    <div id="louie-header">
        <h6>添加宝藏</h6>
        <a href="{php echo $this->createWebUrl('treasure')}" class="btn btn-default btn-sm header-right-btn">返回列表</a>
    </div>

    <form action="" method="post" class="row col-xs-6" v-on:submit.prevent="submit" name="add">
        <div class="form-group">
            <label>宝藏名</label>
            <input type="text" name="name" v-model.trim="name" class="form-control" placeholder="宝藏名称" />
        </div>
        <div class="form-group">
            <label>宝藏图标</label>
            {php echo tpl_form_field_image('icon')}
        </div>
        <button class="btn btn-primary" type="submit">确认设置</button>
    </form>

    <v-dialog/><!--提示框-->
</div>
<script src="../addons/kuyuan_vbz/dist/web/treasure-add.js"></script>
{template 'common/footer'}
